package cn.szzsi.common.task;

import com.jfinal.kit.PropKit;
import com.jfinal.plugin.cron4j.*;

/**
 * Created by zhengy on 2017/4/28.
 */
public class MyTask implements ITask{
    @Override
    public void stop() {
        System.out.println("停止执行---------------------");
    }

    @Override
    public void run() {



        System.out.println("开始执行---------------------");
    }


    public static void main(String[] args) {
        Cron4jPlugin cp=new Cron4jPlugin();
        cp.addTask("* * * * *",new MyTask());
        cp.start();
    }
}
